// dlg.txt

//		mark_quest_dest(zone,x,y,layer,quest);
//		cancel_out_fight(0,short kill_enc);
//		make_outdoor_enc(short x,short y,short which_enc);
//		set_out_fight_field(short which_field);
// 				which_field is 0-20

begintalkscript;

variables;

short this_sec = 35;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You emerge from the pass and enter the higher northern half of the Low Dhaga. It is not as hot this far upward. There is a distinct chill in the air. However, it is even more barren. Few rainclouds coming off of the sea make it this far inland.";
	text2 = "You see signs that the raids that have plagued this land are even more severe here. There are several guard towers watching the road, each fully staffed with heavily armed Dhagans. Some of them wait at the fires ahead to greet you.";
	code =
		sf(100 + this_sec,1,1);
		if (gf(80,10) < 3)
			sf(80,10,3);

		run_game_hardcode(1006);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "You search the pouches of the raiders. You find no letters or other information. Makes sense, as ka-beasts are pretty mindless.";
	text2 = "You do, however, find a handful of gemstones. The creatures must have thought they were pretty.";
	code =
		change_coins(65,1);
	break;
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a large force of warriors watching the pass into this land. Several of them, including their leader, wait by this fire to greet and question visitors. Of course, when they see the insignia on your shoulder, they are ready to let you pass.";
	text2 = "They watch as you approach, and their captain rises from his stool. They all show signs of recent battles, and the ground nearby has been scorched with spells.";


begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Speak with him.";
	text1 = "His face is cold as stone, but he is cordial. You are offered food and drink. _Welcome, Haven, to the upper Low Dhaga. The Raasa sent word ahead of your arrival. We congratulate you on your victories._";
	text2 = "_How may I aid you?_";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Move on.";
	text1 = "The Dhagan warriors wave as you depart.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Please report on the raider situation._";
	text1 = "_Troublesome. As long as you stay close to the road, you are safe, though this gets worse with every passing day. The ka-beasts and Ro raiders are always close, though._";
	text3 = "_Much better. We have heard of your victory and are grateful._";
	action = DEP_ON_SDF 80 10 3;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Any cities nearby?_";
	text1 = "_I am happy to say that refuge is close. The city of Etzae is not far to the north._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Haven has a fort up here?_";
	text1 = "_It does, though it is a journey. [F4] is to the northeast._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Thank you for your aid._";
	text1 = "_And we wish you good hunting._ He returns to his stool.";
	text2 = "At no point in your conversation did he show a smile or betray any emotion. This is normal for the Low Dhaga, and it is increasingly unsettling.";
	action = END_TALK;
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "You meet a small caravan on the road. There are two stagecoaches, guarded by ten armed Dhagan men. The windows of the wagons are covered with curtains.";
	text2 = "When you get close, the men react. They form a circle around the wagons. They don't attack, but their hands are on their weapons.";

begintalknode;
	state = 40;
	nextstate = 41;
	condition = 1;
	question = "Stop them.";
	text1 = "They attempt to seem calm, but they are very concerned. They really don't want you to see who or what is in the coaches.";
	text2 = "There is one old man among them, walking with the aid of a spear. He walks to the front. _Hello, Haven. We are only traveling to Etzae. Why are you stopping us? We wish to pass._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Just let them go.";
	text1 = "You silently walk by. They watch you, on their guard, until you are past. When you are a safe distance off, they rush down the road away from you.";
	action = END_TALK;

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_And what is in the coaches?_";
	text1 = "_They are our people. They are not shown out here in the open. Keeping them hidden is our way. We ask to pass._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_There are lots of raiders about._";
	text1 = "_We know. We are armed. We stay close to the roads._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "Open the coaches.";
	text1 = "You shoulder past the Dhagans and open the coaches. Inside, you find several women of their clan. When they see you, they shout insults and slam the doors closed.";
	text2 = "You turn and find the Dhagans looking at you with contempt. Without another word, they march past you.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
		violence(1);
		ro_faction(-2);
	break;

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_Turn back and go home._";
	text1 = "The old man considers arguing. Then he thinks better of it. _Haven is wise. Haven always knows best. We must submit._ They turn back without another word.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
		violence(1);
		ro_faction(-2);
	break;
	
begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_Move on._";
	text1 = "The old man nods. _Haven is wise. Haven knows best._ Without another word, they march past you.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
		violence(-1);
		ro_faction(2);
	break;

	
//

////

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "A stoneworking clan of the Low Dhaga lives here. They have several old, worn stone halls, surrounded by piles of stone blocks in varying stages of processing. When you come into view, the men working outside shout an alarm and grab their weapons. Brigands must be a constant threat.";
	text2 = "When they see that you are a Havenite and not a raider, they lower their weapons.";


begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(80,16) < 115;
	question = "Greet them.";
	text1 = "They bow and chat with you when you approach. They are quiet, grim folk, betraying none of their true feelings when they speak. Whatever you would have to do to earn their trust, you haven't done it.";
	text2 = "They warn you to watch out for the raiders, who they describe as being pretty much everywhere nearby.";
	action = END_TALK;

begintalknode;
	state = 70;
	nextstate = 71;
	condition = gf(80,16) >= 115;
	question = "Greet them.";
	text1 = "They bow when you approach. You are offered a meal and tea. They are quiet, grim folk, betraying none of their true feelings when they speak. Yet, they must have heard good things about you. They are talking, after all.";
	text2 = "You learn that they trade some of their finer stone and other crafts to travelers. They have made some things that might be of interest to you.";
	
begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "Move by.";
	text1 = "As you move on, they are relieved. They lower their weapons.";
	action = END_TALK;
	
begintalknode;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "Trade with them.";
	question = "_Let me see your wares._";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Dhagan Clan", "shopdesc.", 37,0,0);	
	break;

begintalknode;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "Depart.";
	text1 = "The men of the clan gather to bid you farewell as you depart. It is about as cordial as you can expect. At no time during your visit do you get a glimpse of any of the women of the clan.";
	action = END_TALK;

	


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				